package com.create404.suishoupai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.create404.suishoupai.dto.DepartmentDto;
import com.create404.suishoupai.entity.Department;
import com.create404.suishoupai.mapper.DepartmentMapper;
import com.create404.suishoupai.service.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author create404
 * @since 2021-07-17
 */
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements IDepartmentService {
    @Autowired
    private DepartmentMapper dmapper;

    @Override
    public List<Department> getDepartmentAndPerson() {
        return dmapper.getDepartmentAndPerson();
    }

    @Override
    public List<DepartmentDto> selectAll() {
        return dmapper.selectAll();
    }
}
